import request from '@/utils/request'


export function get(url, params){
    return request({
        url: url,
        method: 'get',
        params
    })
}


export function post(url, data){
    return request({
        url: url,
        method: 'post',
        data
    })
}


export function put(url, data){
    return request({
        url: url,
        method: 'post',
        data
    })
}

export function del(url){
    return request({
        url: url,
        method: 'delete'
    })
}

export const http = {
    get,
    post,
    put,
    del
}